package com.yunhui.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
/**
 * <p>
 * 行程的发布表
 * </p>
 *
 * @author WGH
 * @since 2019-12-09
 */

public class RouteIssued extends Model<RouteIssued> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键编号
     */

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 关联基本行程id
     */

    @TableField("jbId")
    private Integer jbId;
    /**
     * 开始时间
     */

    @TableField("startTimes")
    private Date startTimes;
    /**
     * 结束时间
     */

    @TableField("closeTimes")
    private Date closeTimes;

    /**
     * 行程名
     */

    @TableField(value = "title",exist = false)
    private String title;

    /**
     * 天数
     */

    @TableField(value = "days",exist = false)
    private Integer days;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getJbId() {
        return jbId;
    }

    public void setJbId(Integer jbId) {
        this.jbId = jbId;
    }

    public Date getStartTimes() {
        return startTimes;
    }

    public void setStartTimes(Date startTimes) {
        this.startTimes = startTimes;
    }

    public Date getCloseTimes() {
        return closeTimes;
    }

    public void setCloseTimes(Date closeTimes) {
        this.closeTimes = closeTimes;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getDays() {
        return days;
    }

    public void setDays(Integer days) {
        this.days = days;
    }

    @Override
    public String toString() {
        return "RouteIssued{" +
                ", id=" + id +
                ", jbId=" + jbId +
                ", startTimes=" + startTimes +
                ", closeTimes=" + closeTimes +
                "}";
    }
}
